package edu.sctu.practice.class02.zhaozhongjun.test1;

import java.util.Scanner;

/**
 * Created by 赵中军 on 2015/10/14.
 */
public class TestA {
    public static void main(String[] args) {
        A a = new A();
        a.v();
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入你的答案");

        while (true) {
            int input = sc.nextInt();
            if (input == a.v()) {
                System.out.println("你猜对咯");
            } else if (input < a.v()) {
                System.out.println("答案过小");
            } else {
                System.out.println("答案过大");
            }
        }
    }
}
